Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
Supporting 4GL
The following 4GL elements specially support programming of and programming with class-based objects:
SUPERstatement — Invokes the constructor of the immediate super class from the constructor of the invoking subclass. For more information, see the "Constructing an object" section.SUPERsystem reference — Invokes the implementation of a specified method within a class hierarchy as implemented in the lowest super class above the invoking subclass. Analogous to theRUNSUPERstatement orSUPERfunction in procedure-based programming. For more information, see the "Calling a super class method" section.CASTfunction — Allows a super class object reference to be assigned to a related subclass object reference. For more information, see the "Assignment and the CAST function" section.TYPE-OFfunction — Verifies the type of an object. For more information, see the "TYPE-OF function" section.VALID-OBJECTfunction — Validates that an object reference points to a real object. Analogous to theVALID-HANDLEfunction for internal object handles. For more information, see the "VALID-OBJECT function" section.THIS-OBJECTsystem reference — Returns an object reference to the current object from a method within the class hierarchy of the object. Analogous to theTHIS-PROCEDUREobject handle for procedures. For more information, see the "THIS-OBJECT system reference" section.FIRST-OBJECTattribute — ASESSIONhandle attribute that returns an object reference to the first class-based object instantiated in a Progress session. Analogous to theFIRST-PROCEDUREattribute for persistent procedures. You can use theNEXT-OBJECTdata member of any class to walk the list of instantiated class-based objects forward from the first to the most recent object currently instantiated in the session. All user-defined classes inheritNEXT-OBJECTfrom the root class,Progress.Lang.Object. For more information on theFIRST-OBJECTattribute and theNEXT-OBJECTdata member, see the "Progress session object references" section.LAST-OBJECTattribute — ASESSIONhandle attribute that returns an object reference to the most recent class-based object instantiated in a Progress session. Analogous to theLAST-PROCEDUREattribute for persistent procedures. You can use thePREV-OBJECTdata member of any class to walk the list of instantiated class-based objects backward from the most recent to the first object currently instantiated in the session. All user-defined classes inheritPREV-OBJECTfrom the root class,Progress.Lang.Object. For more information on theLAST-OBJECTattribute and thePREV-OBJECTdata member, see the "Progress session object references" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |